      <!-- 共用头部1 -->
	 <div id="top">
		 <div class="head2 clear">
			 <div class="account sprite_icon">
				 <a href="javascript:history.go(-1)"><span class="icon1 icon_com"></span></a>
			 </div>
			   {if $title}
			    <div class="title">{$title}</div> 
               {else}
                <div class="title">{$seo_title}</div> 
               {/if}<div class="search sprite_icon">
			    <!-- <span class="icon2 icon_com">-->
			 </div>
		 </div>
	 </div> 
     <include file="Mobile:nav"/>         
<div class="f_index">
		 <div class="swiper-container">
			 <div class="swiper-wrapper clear">
				 
				<volist name="pics" id="v" key="k"> 
				 <div class="swiper-slide">
					 <a href="javascript:;">
						 <img src="{$v['filepath']}" height="319" alt="" />
					 </a>
				 </div>
                </volist> 
			 </div>
		 </div>
		<div class="pagination" style="display:none"></div>

		 <a href="javascript:;" class="back"></a>
		 <!--<a href="javascript:;" class="comment"></a>-->
	 </div>
    <div style="width:80%; margin:0 auto">
	 <h2 class="C_title">{$title}</h2>
	 
	 <div class="C_price clear" style="text-align: center;font-size: 16px;margin-left: 70%; width:30%; height:30px; line-height:30px; background-color: #FF0000;    border-radius: 6px;">
		 <!--<p><span>专享价：</span><strong></strong></p>-->

		 <a style=" color: #FFF;"  href="mqqwpa://im/chat?chat_type=wpa&uin={$site_qq}&version=1&src_type=web&web_src=www.chinesestack.com" class="buy">购买咨询</a>

	 </div>

	 <div class="collection clear border_bottom C_collection">
		 <span class="icon3 icon_com"></span><em>{$hits}</em>
		 <a href="javascript:onclick=keep({$id})" ><strong>收藏：</strong><span class="icon4 icon_com"></span></a>
	 </div>
     </div>
<style>
.choose_btn li{ width:33%}
</style>
<script>
	 function  tab_shou(id){
		 $(".T_tab").css("display","none");
		  $("#"+id).css("display","block");
		 }
		 
		 
 </script>
	 <div class="choose">
		 <ul class="choose_btn clear">
			 <li><a href="javascript:tab_shou('T_tab1');">商品详情</a></li>
			 <li><a href="javascript:tab_shou('T_tab2');">规格参数</a></li>
			 <li class="active"><a href="javascript:tab_shou('T_tab3');">商品评论</a></li>
		 </ul>


		 <div class="C_tab">

			 <div class="T_tab1 T_tab" style="display:none" id="T_tab1">
				 {$content}
			 </div>

			 <div class="T_tab2 T_tab" style="display:none;" id="T_tab2">
				 {$p_sptx}
			 </div>

			 <div class="T_tab3 T_tab" id="T_tab3">
             
              <form name="myform" id="myform" action="{:URL('User-Index/comment_post')}" method="post" onSubmit="return logina();">
                    <input type="hidden" name="conid" value="{$id}"/> 
                    <input type="hidden" name="contype" value="Product"/>
                    <input type="hidden"  name="moduleid" value="{$moduleid}" />
                    <input type="hidden"  name="catid" value="{$catid}" />
                    <input type="hidden"  name="title" value="{$title}" /
                    <input type="hidden"  name="lang" value="{$langid}" />
                    <input type="hidden"  name="url" value="<?php echo $_SERVER['REQUEST_URI'];?>" /> 
				 <div class="padding_section clear border_bottom">
					 <div class="discuss clear">
						 <div class="pic">
							 <img src="../Public/images/effect_pic4.jpg" alt="" />
						 </div>
						 <textarea name="content"  id="" cols="30" rows="10" placeholder="添加评论~~" class="discuss_box"></textarea>
					 </div>
                       <input type="submit" value="添加评论" class="add_discuss" style=" font-family:微软雅黑;" />
				 </div>
				</form>  


  <?php 
         $field='jg_comment.id,jg_comment.content,jg_comment.createtime,jg_user.id as userid,jg_user.avatar,jg_user.username';
         $where='jg_Comment.`conid`='.$id.' and contype="Product"';
         $reluts=M('Comment')->field($field)->where($where)->join('jg_user ON jg_comment.userid = jg_user.id')->limit('50')->select();
          foreach($reluts as $key=>$val){
    ?>
				 <ul class="comment_list">
					 <li class="clear">
						 <div class="pic">
							  <a href="index.php?g=Mobile&m=User&a=index&id={$val['userid']}"><img  src="{$val['avatar']}" /></a>
						 </div>
						 <div class="info">
							 <strong>{$val['username']}</strong>
							 <span>{$val.createtime|toDate=###,'m-d H:i:s'}</span>
							 <em>说：</em>
							 <p class="mes">{$val['content']}</p>
						 </div>
					 </li>
		<?php }?>
				 </ul>
			 </div>
		 </div>
	 </div>
<script type="text/javascript">
     function  keep(id){
	
	
		  var module='Product';
		  
		  var url=window.location.search;
		      url='index.php'+url;
		  var title=$(".C_title").html();
		 
      //alert(title);
		  //var userid=$("#keep_u").attr('name');
		 // alert(userid)
	
		  $.post(
				  'index.php?g=User&m=Index&a=keep', 
				  {'id':id,
				   'module':module,
				   'url':url,
				   'title':title,
				   
				  },
				  function(res){
					 if(res.length>1000){
						 alert('您还未登录，请您先登录');
						 } else{
							 alert(res)
						      if(res=='收藏成功!'){
							  var keepnum=parseInt($(".keep_n").html())+1;
							  $(".keep_n").html(keepnum);
							  }
						 
						 }
					 
					});
	  
	}





</script>                                                                                                                                                